﻿using System;
using RAP.Framework.Libary.Utils;
using RAP.Framework.Libary.DomTemplateBuilder.Attributes;
using RAP.Framework.Libary.DomTemplateBuilder.Handler.StringActions;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element.StringActions
{
    /// <summary>
    /// 
    /// </summary>
    [TagHandler( "String.IsStartWith", typeof( StringIsStartWithHandler ) )]
    public class StringIsStartWith : StringActionConditional
    {
        public string Find
        {
            get
            {
                return this.ToString ( "Find" );
            }
        }

        public StringComparison ComparisonType
        {
            get
            {
                return this.ToEnumValue<StringComparison> ( "ComparisonType", StringComparison.CurrentCulture );
            }
        }

    }
}
